# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfconf
pkgver=4.18.3
pkgrel=0
pkgdesc="Hierarchical configuration system for Xfce"
url="https://xfce.org/"
arch="all"
license="GPL-2.0-only"
options="!check" # Requires running dbus daemon.
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-bash-completion"
makedepends="libxfce4util-dev intltool gtk-doc glib-dev dbus-dev
	gobject-introspection-dev vala"
source="https://archive.xfce.org/src/xfce/xfconf/${pkgver%.*}/xfconf-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib \
		--localstatedir=/var \
		--enable-introspection \
		--enable-vala \
		--disable-static \
		--enable-gtk-doc
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
e1aa133f79ea584af067369f6fd059cd444c4743270ed90a8b0dfe158f7ae6fbc78af62fab67c64674060c2fd1404f06602ac8c019b0db8b70779a17fde4a327  xfconf-4.18.3.tar.bz2
"
